using System;
using System.Collections;

namespace bOS.XML
{
	public class XMLAttributes : CollectionBase
	{
		public int Add (XMLAttribute attribute)
		{
			return this.List.Add (attribute);
		}

		public XMLAttribute this[ int index ]  
		{
			get  
			{
				return( (XMLAttribute) List[index] );
			}
			set  
			{
				List[index] = value;
			}
		}

		public string GetXML()
		{
			string sXml=string.Empty;

			for ( int i =0 ; i<this.List.Count; i++)
			{
				XMLAttribute attribute = (XMLAttribute)this.List[i];

				sXml+=" ";
				sXml+=attribute.GetXML();
			}

			return sXml;
		}
	}
}
